package server.factory;

import java.util.ArrayList;
import java.util.Date;

import fr.appliClient.server.entity.Consumption;
import fr.appliClient.server.entity.Vehicle;

public class VehicleMockFactory extends MockFactory<Vehicle> {

	public VehicleMockFactory() {

		super(Vehicle.class);
	}

	@Override
	protected void populate(int seed, Vehicle mock) {

		mock.setRegistration("id" + seed);
		mock.setPurchaseDate(new Date(seed));
		mock.setConsumptions(new ArrayList<Consumption>());

	}

}
